package com.gears_software.sxdc.dccx.data.finder.util;

import com.orhanobut.logger.Logger;

import org.androidannotations.annotations.EBean;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.web.client.ResponseErrorHandler;

import java.io.IOException;

/**
 * Created by lileltp on 2017/4/8.
 */
@EBean
public class GearsResponseErrorHandler implements ResponseErrorHandler {
    @Override
    public boolean hasError(ClientHttpResponse response) throws IOException {
        Logger.d("adfasfsdfsfdsf");
        return false;
    }

    @Override
    public void handleError(ClientHttpResponse response) throws IOException {
        Logger.d("lileltp");
    }
}
